package com.luguangtao.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope  //扫描刷新配置
public class TestController {

    @Value("${lgt}")
    private String ttt;
    @Value("${zyh}")
    private String hhh;

    @RequestMapping("test01")
    public String test01(){
        return ttt+"********"+hhh;
    }
}
